Script Explorer

The Script Explorer pane displays all the scripts and functions available in your solution. You can show or hide the explorer by selecting Workspace > Panes > Script Explorer, or by pressing Ctrl+F12 on your keyboard.

To customize the position and visibility of the script explorer in the workspace, see Customizing view and panes for more information.

When you create a new JewelScript using the JewelScript Editor, or a new function using the Function Tool, the object will be listed automatically in the script explorer. The scripts (read only) created from the JewelScript from Concept tool are also listed in the pane with a default naming convention: Concept-<subsurface model name>-<concept name>

You can create multiple levels of folders and organize your scripts and functions in the explorer in folders in a standard tree hierarchy. You can also create a new script, a function or new folder using the context menu of the Script Explorer. Arrange the objects and folders, or move the objects between folders in the Script Explorer using the drag and drop method. To move multiple objects at a time, hold Shift key and select the objects that you want to move. Keep holding the Shift key and drag the selected objects to the desired folder or location in the Script Explorer.

Double click to rename an object or a folder in the explorer. Use the context menu for script and functions to edit and manage the objects in the explorer.

The Script Explorer also displays all loaded macros, macro modules and macro libraries. It is the heart of the macro add-in and is a starting point for all macro related operations.

All loaded macros , macro modules and macro libraries in the Script Explorer have context menus, allowing you to add new objects, import, and delete objects.

When you create a new macro or edit an existing macro, the Macro Editor opens. In the Macro Editor you can see and edit the code of the macros. You can open multiple macros inside the Macro Editor. When you change the code of a macro, compile the code to check if it is valid C# or Visual Basic code. If the code has errors, the macro cannot run.

When the Macro Editor is open, the Macro Toolbar is visible. Using the Macro Toolbar you can (re)compile and run the active macro.

For more information, see Writing macros.